<!-- 单页 项目 -->
<!-- 还缺少个外框架，晚点再处理 -->
<script setup lang="ts">
import HelloWorld from '@/components/HelloWorld.vue'
</script>
<template>
  <header>
    <div class="head-logo">
      <img alt="Vue logo" class="logo" src="@/assets/images/logo.svg" />
    </div>
    

    <div class="head-nav">
      <nav>
        <RouterLink to="/">Home</RouterLink>
        <RouterLink to="/about">About</RouterLink>
        <RouterLink to="/admin">admin</RouterLink>
      </nav>
    </div>
  </header>
  <main>
    <HelloWorld msg="You did it!" />
    <div class="about">
      <h1>This is an about page</h1>
    </div>
  </main>
  
</template>

<style>
header {
  line-height: 1.5;
  max-height: 50px;
  max-width: 1280px;
  margin:0 auto;
  
}

main {
  max-width: 1280px;
  margin:0 auto;
}

.head-logo{
  display: inline-block;
  line-height: 50px;
  vertical-align: super;

}
.head-logo img{
  width: 30px;
  height: 30px;
  vertical-align: middle;
  display: inline-block;
}

.head-nav{
  display: inline-block;
  vertical-align: super;
}

nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}

@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
